home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
mailers
/
harvey45.zip
/
CHKMSGS.DOC
next >
Wrap
Text File
|
1992-08-31
|
4KB
|
103 lines
---------------------------------------------------------------------------
CHKmsgs v1.00 by Harvey Parisien 1:249/114
---------------------------------------------------------------------------
This utility is a great assistant to any BUSY sysop or NEC / NC types. The
concept outlined below was suggested to me by Ian Silver. This helps with
the automation of bbs systems, and/or supplements Harvey the Robot quite
nicely. Thanks Ian!!
This utility reads *.MSG files addressed to a specific non human, using a
password and datafile name on the subject line. The message body is then
extracted and put into a textfile (the datafile name on the subject line).
This file can be used in different ways. One way is where you can use it in
conjunction with the Robot. This allows someone with the proper password
to enter a netmail message that the Robot automatically bundles and mails to
a predefined list.
IE... (batch file segment)
chkmsgs chkmsgs.001
if exist control1.txt H control1.h
Another way is where you simply check for a file created by chkmsgs and if it
exists, key events in your main system batch file.
IE... (batch file segment)
chkmsgs chkmsgs.002
if exist control2.txt BOOT
USE: CHKmsgs control_configfile
CHKmsgs needs a control file using the following format...
FROM (authorized senders name)
password (to be on the subject line)
netmail path (this is where your *.msg netmail files are)
Sample...
Steve Martin
passmeitsok
c:\max\msg\netmail\
CHKmsgs scans your netmail directory and checks for UNREAD messages written
by the authorized FROM to AUTO HARVEY. Then it checks the message. The
message must be addressed to AUTO HARVEY. This was done for security, and so
unless you have a user called auto harvey that reads that message, it will
stay UNREAD until processed by CHKmsgs.
If the subject line contains the authorized password followed by a filename
(which can be a complete drive:\path\filename [no extension]), CHKmsgs will
create the file containing the body of the encountered message for use by
HARVEY the robot, or other batch file processing. You can check in your
batch file for the files existance, and run HARVEY the robot which can send
that message out to your predetermined list, or execute any other dos command.
Example...
Ian Silver sends a message to Harvey Parisien with a subject line as follows:
passmeitsok c:\test\dummy
Notice no extension on dummy. Just incase of errors or abuse, I didn't want a
possibility where any important files could be written over. The file created
will automatically get an extension of .HHH (a basically uncommon and useless
extension).
In a batch file I run CHKmsgs
...BATCH STUFF
CHKmsgs
IF EXIST c:\test\dummy.HHH H DUMMY.DAT
.. you may have several if exist statements here...
IF EXIST c:\test\dummy.HHH DEL c:\test\dummy.HHH
I left it up to you to delete the *.hhh files. This way you can use them to
trigger other services not related to mail. You can also have a preset text
file which has to get sent out, and just not be using xxxxxxxx.HHH for that
particular task.
YOU MUST DELETE THEM OR HARVEY THE ROBOT WILL KEEP SENDING MAIL OUT!
CHKmsgs will only deal with controlling messages which are unread.
CHKmsgs will mark the controlling message as read and not deal with it again.
If an EXTENSION is used on the subject line the message will be ignored also.
If the controlling message is used in an echomail area the message will be
stripped of it's original tearline and origin line. In fact you can enter in
the body of your text a carriage return and --- as the first three characters
on any line, the rest of the message body will be ignored.
If *.msg files are not found CHKmsgs will exit safely.
To be recognized the message must be TO: AUTO HARVEY
This was done for security, and so unless you have a user called auto harvey
that reads that message, it will stay unread until processed by CHKmsgs.
-----------------------------------------------------------------------------
Use freely and enjoy.... HP